import 'dart:convert';

import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/get_user_by_id_entity.g.dart';

/// 人员管理实体
@JsonSerializable()
class GetUserByIdEntity extends ChoiceBean {
  GetUserByIdEntity();

  factory GetUserByIdEntity.fromJson(Map<String, dynamic> json) => $GetUserByIdEntityFromJson(json);
  int? allocation = 0;
  String? areaCode = '';
  String? avatar = '';
  String? birthday = '';
  int? branchPersonInCharge = 0;
  String? certificate = '';
  String? certificateNum = '';
  int? certificateRemind = 0;
  String? certificateUrl = '';
  int? checkId = 0;
  int? chemistry = 0;
  String? companyCode = '';
  String? createBy = '';
  String? createDate = '';
  String? deleted = '';
  int? departManager = 0;
  String? departmentName = '';
  String? description = '';
  String? documentUrl = '';
  String? education = '';
  String? educationName = '';
  String? email = '';
  String? endTime = '';
  String? firstTime = '';
  String? formId = '';
  String? id = '';
  String? userId = '';
  int? isSystem = 0;
  int? isViewAll = 0;
  String? jobNumber = '';
  String? lastLoginTime = '';
  int? mainPersonInCharge = 0;
  String? mobile = '';
  String? nickname = '';
  String? otherUid = '';
  String? personDictId = '';
  String? positionName = '';
  String? professionalName = '';
  int? safetyEngineer = 0;
  int? technicalPersonnel = 0;
  int? samplingAnalysis = 0;
  String? school = '';
  int? sex = 0;
  String? sexName = '';
  String? sign = '';
  int? specialOperations = 0;
  String? specialWorks = '';
  List<String>? specialWorksArray = [];
  int? specialitySafe = 0;
  String? starTime = '';
  int? status = 0;
  int? taskCount = 0;
  String? titleName = '';
  int? type = 0;
  String? unitName = '';
  String? updateBy = '';
  String? updateDate = '';
  String? url = '';
  String? userType = '';
  String? userTypeName = '';
  String? username = '';
  List<dynamic>? workRoleId = [];
  String? workRoleName = '';

  Map<String, dynamic> toJson() => $GetUserByIdEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }

  @override
  String getId() {
    return id ?? '';
  }

  @override
  String getShowName() {
    return nickname ?? '';
  }

}
